home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / lcocxweb / emailfrm.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-08-04  |  4.4 KB  |  141 lines

  1. VERSION 5.00
  2. Object = "{B190576C-254A-11D2-B61E-C80424DEEF17}#51.0#0"; "LCocx.ocx"
  3. Begin VB.Form Email 
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "EasyEmail"
  6.    ClientHeight    =   5628
  7.    ClientLeft      =   36
  8.    ClientTop       =   324
  9.    ClientWidth     =   8184
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    ScaleHeight     =   5628
  13.    ScaleWidth      =   8184
  14.    StartUpPosition =   3  'Windows Default
  15.    Begin LCocx98.LCocx LCocx1 
  16.       Left            =   240
  17.       Top             =   3240
  18.       _ExtentX        =   656
  19.       _ExtentY        =   656
  20.    End
  21.    Begin VB.CommandButton cmdSend 
  22.       Caption         =   "&Send"
  23.       Height          =   372
  24.       Left            =   240
  25.       TabIndex        =   9
  26.       Top             =   2640
  27.       Width           =   1212
  28.    End
  29.    Begin VB.TextBox txtEmailServer 
  30.       BorderStyle     =   0  'None
  31.       Height          =   300
  32.       Left            =   240
  33.       TabIndex        =   8
  34.       Text            =   "mail.yourserver.com"
  35.       Top             =   120
  36.       Width           =   1572
  37.    End
  38.    Begin VB.TextBox txtFromName 
  39.       BorderStyle     =   0  'None
  40.       Height          =   300
  41.       Left            =   240
  42.       TabIndex        =   7
  43.       Text            =   "Sender's Name"
  44.       Top             =   600
  45.       Width           =   1572
  46.    End
  47.    Begin VB.TextBox txtFromEmail 
  48.       BorderStyle     =   0  'None
  49.       Height          =   300
  50.       Left            =   1920
  51.       TabIndex        =   6
  52.       Text            =   "sender@senderemail.com"
  53.       Top             =   600
  54.       Width           =   1812
  55.    End
  56.    Begin VB.TextBox txtToEmail 
  57.       BorderStyle     =   0  'None
  58.       Height          =   300
  59.       Left            =   1920
  60.       TabIndex        =   5
  61.       Text            =   "service@send-a-teddy.com"
  62.       Top             =   1080
  63.       Width           =   1812
  64.    End
  65.    Begin VB.TextBox txtSubject 
  66.       BorderStyle     =   0  'None
  67.       Height          =   300
  68.       Left            =   240
  69.       TabIndex        =   4
  70.       Text            =   "Subject"
  71.       Top             =   1560
  72.       Width           =   1572
  73.    End
  74.    Begin VB.TextBox txtEmailBody 
  75.       BorderStyle     =   0  'None
  76.       Height          =   2772
  77.       Left            =   3840
  78.       MultiLine       =   -1  'True
  79.       ScrollBars      =   2  'Vertical
  80.       TabIndex        =   3
  81.       Text            =   "Emailfrm.frx":0000
  82.       Top             =   120
  83.       Width           =   4092
  84.    End
  85.    Begin VB.TextBox txtToName 
  86.       BorderStyle     =   0  'None
  87.       Height          =   300
  88.       Left            =   240
  89.       TabIndex        =   2
  90.       Text            =   "Recipient's Name"
  91.       Top             =   1080
  92.       Width           =   1572
  93.    End
  94.    Begin VB.TextBox txtResponse 
  95.       BorderStyle     =   0  'None
  96.       Height          =   1692
  97.       Left            =   240
  98.       MultiLine       =   -1  'True
  99.       ScrollBars      =   2  'Vertical
  100.       TabIndex        =   1
  101.       Top             =   3720
  102.       Width           =   7692
  103.    End
  104.    Begin VB.CommandButton cmdstop 
  105.       Caption         =   "S&top"
  106.       Height          =   372
  107.       Left            =   1920
  108.       TabIndex        =   0
  109.       Top             =   2640
  110.       Width           =   1212
  111.    End
  112.    Begin VB.Label lblstatus 
  113.       AutoSize        =   -1  'True
  114.       Caption         =   "Status"
  115.       Height          =   192
  116.       Left            =   3840
  117.       TabIndex        =   10
  118.       Top             =   3000
  119.       Width           =   444
  120.    End
  121. Attribute VB_Name = "Email"
  122. Attribute VB_GlobalNameSpace = False
  123. Attribute VB_Creatable = False
  124. Attribute VB_PredeclaredId = True
  125. Attribute VB_Exposed = False
  126. Private Sub cmdstop_Click()
  127. LCocx1.Cancelflag = True
  128. End Sub
  129. Private Sub cmdSend_Click()
  130. ret = LCocx1.SendEmail(txtEmailServer, txtFromName, txtFromEmail, txtToName, txtToEmail, txtSubject, txtEmailBody, "")
  131. If ret Then lblstatus = "Mail Sent" Else lblstatus = "Mail not Sent"
  132. End Sub
  133. Sub LCocx1_SendEmailResponse(SendEmailResponse As String)
  134. 'this is the response from the mail server
  135. txtResponse = txtResponse & SendEmailResponse
  136. End Sub
  137. Sub LCocx1_SendEmailStatus(SendEmailStatus As String)
  138. 'This is the status of the send email process
  139. lblstatus = SendEmailStatus
  140. End Sub
  141.